package com.tong.lettuce.lock.core;

public interface RedisLockable {
    boolean lock(String lockName, String value, int expireSeconds, int retryCount, int retryInterval)
            throws InterruptedException;

    boolean tryLock(String lockName, String value, int expireSeconds) throws InterruptedException;

    boolean unlock(String lockName, String value);

}
